package cn.vcjf.weapp.api.goods.entity;

import cn.vcjf.weapp.common.web.PageModel;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;

/**
 * <p>
    * 
    * </p>
 *
 * @author zhengzihang
 * @since 2018-09-27
 */
@TableName("vc_goods_order_item")
public class GoodsOrderItem extends PageModel<GoodsOrderItem> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 商品ID
     */
    private Integer goodsId;
    /**
     * 商品组合ID
     */
    private Integer groodsGroupId;

    /**
     * 商品数量
     */
    private Integer goodsNum;
    /**
     * 成交价格
     */
    private BigDecimal tradPrice;
    /**
     * (1,正常,2,退换,3,仅退款,4,退款退货)
     */
    private Integer status;

    private Integer refundNum;

    private Integer refundOrderId;

/************************************/
    /**
     * 商品组合名称
     */
    private String proIdName;
    /**
     * 商品名称
     */
    private String goodsName;
    /**
     * 商品图片
     */
    private String goodsFilesId;
    /**
     * 商品价格
     */
    private BigDecimal goodsPrice;

    public Integer getGroodsGroupId() {
        return groodsGroupId;
    }

    public void setGroodsGroupId(Integer groodsGroupId) {
        this.groodsGroupId = groodsGroupId;
    }

    public BigDecimal getTradPrice() {
        return tradPrice;
    }

    public void setTradPrice(BigDecimal tradPrice) {
        this.tradPrice = tradPrice;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getRefundNum() {
        return refundNum;
    }

    public void setRefundNum(Integer refundNum) {
        this.refundNum = refundNum;
    }

    public Integer getRefundOrderId() {
        return refundOrderId;
    }

    public void setRefundOrderId(Integer refundOrderId) {
        this.refundOrderId = refundOrderId;
    }

    public String getProIdName() {
        return proIdName;
    }

    public void setProIdName(String proIdName) {
        this.proIdName = proIdName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsFilesId() {
        return goodsFilesId;
    }

    public void setGoodsFilesId(String goodsFilesId) {
        this.goodsFilesId = goodsFilesId;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }
    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }
    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    @Override
    public void preInsert(){
        super.preInsert();
    }
    @Override
    public void preUpdate(){
        super.preInsert();
    }
    @Override
    public String toString() {
        return "GoodsOrderItem{" +
        "id=" + id +
        ", orderNo=" + orderNo +
        ", goodsId=" + goodsId +
        ", goodsNum=" + goodsNum +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        ", sysUserId=" + sysUserId +
        "}";
    }
}
